//
//  ContextManager.m
//  iOSStudy
//
//  Created by Evan Xie on 12/2/15.
//  Copyright © 2015 Family Wings. All rights reserved.
//

#import <QuartzCore/QuartzCore.h>

#import "ContextManager.h"


@implementation ContextManager

- (CGContextRef)PDFContextWithURL:(NSURL *)pdfFileURL inMediaBox:(CGRect *)mediaBox
{
    if (!pdfFileURL) {
        return nil;
    }
    
    CGContextRef context = CGPDFContextCreateWithURL((__bridge CFURLRef)pdfFileURL, mediaBox, NULL);
    return context;
}

@end
